package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Yzxxn
 */
public interface ServeService extends IService<Serve> {

    PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);

    void add(List<ServeUpsertReqDTO> serveUpsertReqDTO);

    void update(Long id, BigDecimal price);

    void onSale(Long id);

    void offSale(Long id);

    void deleteServe(Long id);

    void onHot(Long id);

    void offHot(Long id);
}
